package com.lovo.psc.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**供货商品明细表*/

@Getter
@Setter
@NoArgsConstructor
@ApiModel(value = "供货商品明细表",description = "供货商品明细表")
@TableName("psc_supplyinfo")
public class SupplyInfoBean {
    @TableId(value = "pk_siId",type = IdType.AUTO)
    @ApiModelProperty("明细主键")
    private long siId;
    @TableField("fk_opId")
    @ApiModelProperty("供货商品id")
    private long opId;
    @TableField("si_specs")
    @ApiModelProperty("供货商品规格")
    private String specs;
    @TableField("si_num")
    @ApiModelProperty("供货数量")
    private int num;

    public SupplyInfoBean(long opId, String specs, int num) {
        this.opId = opId;
        this.specs = specs;
        this.num = num;
    }

    @Override
    public String toString() {
        return "SupplyInfoBean{" +
                "siId=" + siId +
                ", opId=" + opId +
                ", specs='" + specs + '\'' +
                ", num=" + num +
                '}';
    }
}
